"""
练习：
    1. 查找以下所有员工里面工资最高的员工信息
    2. 统计以下所有员工的工资总和
    用Lambad表达式实现
"""

# list_employees = [
#     Employee(1001,9001,"唐僧",60000),
#     Employee(1002,9002,"孙悟空",50000),
#     Employee(1003,9002,"猪八戒",40000),
#     Employee(1004,9001,"沙僧",30000),
#     Employee(1005,9001,"小白龙",1500),
# ],


list_1 = [12,15,7,18,36,27] # 找最大值
# 假设第一个元素就是最大值
maxv = list_1[0]
# 遍历list 获取每一个元素
for i in range(1,len(list_1)):
    if maxv < list_1[i]:
        maxv = list_1[i]
print(maxv)


